import request from "@renderer/utils/request";

//列表查询 （不分页）

export const getUserStoryList = () => {
  return request({
    url: "/userMaterial/getList",
    method: "get",
  });
};

// 列表查询  分页

export const getUserStoryBypage = (data: any) => {
  return request({
    url: "/userMaterial/getPageList",
    method: "get",
    data,
  });
};

// 上传素材
export const uploadUserStory = (data: any) => {
  return request({
    url: "/userMaterial/save",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
    },
    data,
  });
};

// 删除素材

export const deleteUserStory = (ids) => {
  return request({
    url: "/userMaterial/remove?ids=" + ids,
    method: "delete",
  });
};
